package com.yu1996.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yu1996.common.utils.PageUtils;
import com.yu1996.gulimall.product.entity.SkuInfoEntity;

import java.util.List;
import java.util.Map;

/**
 * sku信息
 *
 * @author yu
 * @email 1798121567@qq.com
 * @date 2021-08-04 17:31:00
 */
public interface SkuInfoService extends IService<SkuInfoEntity> {

    PageUtils queryPage(Map<String, Object> params);

  /**
   * 商品管理的sku条件分页查询
   * @param params
   * @return
   */
  PageUtils queryPageByCondition(Map<String, Object> params);


  /**
   *  根据spuid查询所有sku
   * @param spuId
   * @return
   */
  List<SkuInfoEntity> getSkusBySpuId(Long spuId);
}

